<!DOCTYPE html>
<html xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <title>啤酒节-门票-观众</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <#if shiro.hasPermission("noc:nocbeerticketmember:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
        </#if>
        <#if shiro.hasPermission("noc:nocbeerticketmember:update")>
        <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
    </#if>
    <#if shiro.hasPermission("noc:nocbeerticketmember:delete")>
    <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</#if>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>


    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label">方式</div>
            <label class="radio-inline">
                <input type="radio" name="status" value="1" v-model="method" /> 进
            </label>
            <label class="radio-inline">
                <input type="radio" name="status" value="0" v-model="method" /> 出
            </label>
        </div>

        <div class="form-group">
            <div class="col-sm-2 control-label">证件编号</div>
            <div class="col-sm-10">
                <input ref='number' type="text" class="form-control" v-model="number" @blur="getfocus" v-on:keyup.13="select" placeholder="证件编号"/>
                <label>{{errnum}}</label>
                <label>注：输入法必须调整到英文输入法</label>
            </div>
        </div>


        <div style="font-size: 30px;width: 350px; height: 200px; background: green;margin: 20px auto;text-align: center;font-weight: bold;padding-top: 80px;" v-show="message">
            {{errnum}}
        </div>

        <div style="font-size: 30px;width: 350px; height: 200px; background: red;margin: 20px auto;;text-align: center;font-weight: bold;padding-top: 80px;" v-show="!message">
            {{errnum}}
        </div>


        <div class="form-group">
            <div class="col-sm-2 control-label">总人数</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="TotalMember" placeholder="0" disabled/>
            </div>
        </div>


        <div class="form-group">
            <div class="col-sm-2 control-label">总人次</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="TotalCount" placeholder="0" disabled/>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-2 control-label"></div>

            <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
            <!--<input type="button" class="btn btn-primary" id="select" data-loading-text="保存中..." @click="select" value="查询"/>-->     &nbsp;&nbsp;
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/noc/nocbeerticketmember.js?_${.now?long}"></script>
</body>
</html>